package com.ruoyi.system.domain;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * MBTI测试类型对象 mbti_test_type
 * 
 * @author ruoyi
 * @date 2025-01-21
 */
public class MbtiTestType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 测试类型ID */
    @Excel(name = "测试类型ID", cellType = ColumnType.NUMERIC)
    private Long testTypeId;

    /** 测试类型名称 */
    @Excel(name = "测试类型名称")
    @NotBlank(message = "测试类型名称不能为空")
    @Size(min = 0, max = 100, message = "测试类型名称不能超过100个字符")
    private String typeName;

    /** 测试类型编码 */
    @Excel(name = "测试类型编码")
    @NotBlank(message = "测试类型编码不能为空")
    @Size(min = 0, max = 50, message = "测试类型编码不能超过50个字符")
    private String typeCode;

    /** 测试描述 */
    @Excel(name = "测试描述")
    private String description;

    /** 题目数量 */
    @Excel(name = "题目数量", cellType = ColumnType.NUMERIC)
    @NotNull(message = "题目数量不能为空")
    private Integer questionCount;

    /** 时间限制(分钟) */
    @Excel(name = "时间限制(分钟)", cellType = ColumnType.NUMERIC)
    private Integer timeLimit;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setTestTypeId(Long testTypeId) 
    {
        this.testTypeId = testTypeId;
    }

    public Long getTestTypeId() 
    {
        return testTypeId;
    }

    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }

    public void setTypeCode(String typeCode) 
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode() 
    {
        return typeCode;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setQuestionCount(Integer questionCount) 
    {
        this.questionCount = questionCount;
    }

    public Integer getQuestionCount() 
    {
        return questionCount;
    }

    public void setTimeLimit(Integer timeLimit) 
    {
        this.timeLimit = timeLimit;
    }

    public Integer getTimeLimit() 
    {
        return timeLimit;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("testTypeId", getTestTypeId())
            .append("typeName", getTypeName())
            .append("typeCode", getTypeCode())
            .append("description", getDescription())
            .append("questionCount", getQuestionCount())
            .append("timeLimit", getTimeLimit())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
